#!/usr/bin/env node

const me = {}, 
  log =console.log,
  stdout = process.stdout,
  stdin = process.stdin,
  msg =['name','email','qq','mobile'];
let i = 0;
//log(msg[i]+':');
stdout.write(msg[i]+':');
stdin.on('data',data=>{
  //log(data.toString('utf8'));
  me[msg[i++]]=data.toString('utf8');
  //log(msg[i]=":");
  stdout.write(msg[i]+':');
  if(i===4){
    log(me);
    //process.exit();
  }
});
stdin.on('end',()=>{
  log(me);
}
);
